package com.gxjc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.gxjc.dao.bean.NodeDataDao;
import com.gxjc.model.NodeData;
@Transactional
public class NodeDataService {
	@Autowired
	NodeDataDao nodeDataDao;
	public List<NodeData> getAll(){
		return nodeDataDao.getAll();	
	}
	
	public void save(NodeData nodeData) {
		nodeDataDao.save(nodeData);
	}
	
	public void delete(int id) {
		nodeDataDao.delete(id);
	}
	
	public NodeData getNodeDataById(int id) {
		return (NodeData)nodeDataDao.getNodeDataById(id);
	}
	public List<NodeData> getNodeDataBySql(String sql) {
		return nodeDataDao.getNodeDataBySql(sql);
	}
	public List<NodeData> getNodeDataBySql(String sql,int limit) {
		return nodeDataDao.getNodeDataBySql(sql,limit);
	}
	public void update(NodeData nodeData) {
		nodeDataDao.update(nodeData);
	}
	//get and set

	public NodeDataDao getNodeDataDao() {
		return nodeDataDao;
	}

	public void setNodeDataDao(NodeDataDao nodeDataDao) {
		this.nodeDataDao = nodeDataDao;
	}
	
	
}
